<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:112:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/public/../application/admin/view/facrm/customer/contacts/edit.html";i:1676906865;s:88:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/application/admin/view/layout/default.html";i:1676906865;s:85:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/application/admin/view/common/meta.html";i:1676906865;s:87:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/application/admin/view/common/script.html";i:1676906865;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<meta name="robots" content="noindex, nofollow">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<?php if(\think\Config::get('fastadmin.adminskin')): ?>
<link href="/assets/css/skins/<?php echo \think\Config::get('fastadmin.adminskin'); ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
<?php endif; ?>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>

    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <?php if($auth->check('dashboard')): ?>
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                    <?php endif; ?>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-customer_id" class="control-label col-xs-12 col-sm-4"><?php echo __('客户'); ?>:</label>
        <div class="col-xs-12 col-sm-6">
            <input id="c-customer_id" data-rule="required" data-source="facrm/customer/index"
                   class="form-control selectpage" name="row[customer_id]" type="text" value="<?php echo $row['customer']['id']; ?>" disabled>


        </div>
    </div>

   <div class="form-group">
       <label for="c-name" class="control-label col-xs-12 col-sm-4"><?php echo __('姓名'); ?>:</label>
       <div class="col-xs-12 col-sm-6">
       		<input id="c-name" data-rule="required" type="text" class="form-control" name="row[name]" value="<?php echo $row['name']; ?>"  />
       </div>
   </div>
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-4"><?php echo __('联系手机'); ?>:</label>
        <div class="col-xs-12 col-sm-6">

            <div class="input-group">
                <input id="c-mobile" class="form-control"  name="row[mobile]" type="number" value="<?php echo $row['mobile']; ?>"  >
                <div class="input-group-addon no-border no-padding">
                    <span>
                        <button type="button"  class="btn btn-success cloudcall"
                                data-type="customer_contacts" data-field="mobile" data-typeid="<?php echo $row['id']; ?>" data-customer_id="<?php echo $row['customer_id']; ?>" data-name="<?php echo $row['name']; ?>" >
                            <i class="fa fa-phone"></i> <?php echo __('云呼'); ?>
                        </button>
                    </span>

                </div>
            </div>

        </div>
    </div>
    <div class="form-group">
        <label for="c-telephone" class="control-label col-xs-12 col-sm-4"><?php echo __('联系电话'); ?>:</label>
        <div class="col-xs-12 col-sm-6">
            <div class="input-group">
                <input id="c-telephone" class="form-control"  name="row[telephone]" type="number" value="<?php echo $row['telephone']; ?>"  >
                <div class="input-group-addon no-border no-padding">
                    <span>
                        <button type="button"  class="btn btn-success cloudcall"
                                data-type="customer_contacts" data-field="telephone" data-typeid="<?php echo $row['id']; ?>" data-customer_id="<?php echo $row['customer_id']; ?>" data-name="<?php echo $row['name']; ?>" >
                            <i class="fa fa-phone"></i> <?php echo __('云呼'); ?>
                        </button>
                    </span>

                </div>
            </div>

        </div>
    </div>
    <div class="form-group">
        <label for="c-email" class="control-label col-xs-12 col-sm-4"><?php echo __('邮箱'); ?>:</label>
        <div class="col-xs-12 col-sm-6">
            <input id="c-email" type="text"  class="form-control" name="row[email]" value="<?php echo $row['email']; ?>"  />
        </div>
    </div>
    <div class="form-group">
        <label for="c-wechat" class="control-label col-xs-12 col-sm-4"><?php echo __('微信'); ?>:</label>
        <div class="col-xs-12 col-sm-6">
            <input id="c-wechat" type="text"  class="form-control" name="row[wechat]" value="<?php echo $row['wechat']; ?>"  />
        </div>
    </div>
    <div class="form-group">
        <label for="c-post" class="control-label col-xs-12 col-sm-4"><?php echo __('职务'); ?>:</label>
        <div class="col-xs-12 col-sm-6">
            <input id="c-post" type="text"  class="form-control" name="row[post]" value="<?php echo $row['post']; ?>"  />
        </div>
    </div>
    <div class="form-group">
        <label for="c-birthday" class="control-label col-xs-12 col-sm-4"><?php echo __('生日'); ?>:</label>
        <div class="col-xs-12 col-sm-6">
            <input id="c-birthday" data-rule="" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[birthday]" type="text" value="<?php echo $row['birthday']; ?>">
        </div>
    </div>
    <div class="form-group">
        <label for="c-sex" class="control-label col-xs-12 col-sm-4"><?php echo __('性别'); ?>：</label>
        <div class="col-xs-12 col-sm-6">
            <?php echo build_radios('row[sex]', ['-1'=>'未知', '1'=>'男', '0'=>'女'], $row['sex']); ?>
        </div>
    </div>
    <div class="form-group">
        <label for="c-decision" class="control-label col-xs-12 col-sm-4"><?php echo __('决策人'); ?>：</label>
        <div class="col-xs-12 col-sm-6">
            <?php echo build_radios('row[decision]', ['-1'=>'未知', '1'=>'是', '0'=>'否'], $row['decision']); ?>
        </div>
    </div>

    <div class="form-group">
        <label for="c-detailaddress" class="control-label col-xs-12 col-sm-4"><?php echo __('住址地址'); ?>:</label>
        <div class="col-xs-12 col-sm-6">
            <input id="c-detailaddress" type="text"  class="form-control" name="row[detail_address]" value="<?php echo $row['detail_address']; ?>"  />
        </div>
    </div>

    <div class="form-group">
        <label for="c-next_time" class="control-label col-xs-12 col-sm-4"><?php echo __('下次联系时间'); ?>:</label>
        <div class="col-xs-12 col-sm-6">
            <input id="c-next_time"  value="<?php echo $row['next_time']?datetime($row['next_time']):''; ?>"  class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[next_time]" type="text" >
        </div>
    </div>

    <div class="form-group">
        <label for="c-remark" class="control-label col-xs-12 col-sm-4"><?php echo __('备注'); ?>:</label>
        <div class="col-xs-12 col-sm-6">
            <textarea id="c-remark" class="form-control" name="row[remark]"><?php echo $row['remark']; ?></textarea>
        </div>
    </div>
    <div id="extend"></div>
	
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('OK'); ?></button>
            <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
        </div>
    </div>
</form>






                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
    </body>
</html>
